package com.salton123.charging.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.salton123.charging.service.SoundService;
import com.salton123.log.XLog;

/**
 * User: wujinsheng1@yy.com
 * Date: 2020/9/30 16:39
 * ModifyTime: 16:39
 * Description:
 */
public class BootReceiver extends BroadcastReceiver {
    public static final String INTENT_BOOT_COMPLETED = "android.intent.action.BOOT_COMPLETED";
    public static final String TAG = "salton-BootReceiver";

    @Override
    public void onReceive(Context context, Intent intent) {
        if (INTENT_BOOT_COMPLETED.equals(intent.getAction())) {
            XLog.i(TAG, "");
            SoundService.start(context);
        }
    }

}
